<template>
  <div class="app-container">
    <Find :OriginalFilter="{ static: true }" :formList="formList1" @findClicked="findData" />

    <el-card style="margin-top: 10px" shadow="always" :body-style="{ padding: '20px' }">
      <div style="display: flex">
        <div style="width: 45%">
          <h1>待入库明细</h1>
          <Table :tableHeader="tableHeader" :tableData="tableData" :TableHeight="130" />
        </div>
        <div style="width: 60%; margin-left: 10px">
          <h1>入库明细资料</h1>
          <Table :tableHeader="tableHeader1" :tableData="tableData1" :TableHeight="130" />
        </div>
      </div>
      <PageModule :PageData="{ pageSizeShow: true }" />
    </el-card>
  </div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import JMessage from '@/utils/JMessage'
export default defineComponent({
  name: 'WarehouseReceiptForConsumablesDeleted'
})
</script>
<script lang="ts" setup>
import { i18n, Jzhcn } from '@/i18n'
import { ref } from 'vue'
const formList1 = ref([
  {
    type: 'button',
    checkboxLabel: '选择材料'
  },
  {
    type: 'date',
    dateLabel: '入库日期',
    dateValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '请输入入库单号',
    inputValue: ''
  },
  {
    type: 'select',
    selectValue: '',
    selectP: '入库原因',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'select',
    selectValue: '',
    selectP: '部门',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'select',
    selectValue: '',
    selectP: '厂商',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'date',
    dateLabel: '送货日期',
    dateValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '请输入送货单号',
    inputValue: ''
  },
  {
    type: 'button',
    checkboxLabel: '入库批处理'
  },
  {
    type: 'input',
    inputPlaceholder: '请输入材料名称',
    inputValue: ''
  },
  {
    type: 'input',
    inputLabel: '送货单号',
    inputDisabled: true,
    inputValue: '624'
  },
  {
    type: 'input',
    inputLabel: '送货日期',
    inputDisabled: true,
    inputValue: '624'
  },
  {
    type: 'input',
    inputLabel: '部门名称',
    inputDisabled: true,
    inputValue: '624'
  },
  {
    type: 'input',
    inputLabel: '物料编号',
    inputDisabled: true,
    inputValue: '624'
  },
  {
    type: 'input',
    inputLabel: '仓管员',
    inputDisabled: true,
    inputValue: '624'
  },
  {
    type: 'input',
    inputLabel: '备注',
    inputDisabled: true,
    inputValue: '624'
  }
])

const findData = (a: any) => {}

// 表格数据
const tableData = [
  {
    date: '20230427',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  }
]

const tableHeader = ref([
  {
    label: '订购单号',
    prop: 'slipNo',
    width: '55'
  },
  {
    label: '材料颜色',
    prop: 'slipDate'
  },
  {
    label: '材料名称',
    prop: 'dutyDeptName'
  },
  {
    label: '规格',
    prop: 'dutyDeptName',
    width: '55'
  },
  {
    label: '单位',
    prop: 'dutyDeptName',
    width: '55'
  },
  {
    label: '数量',
    prop: 'dutyDeptName',
    width: '55'
  },
  {
    label: '物料编码',
    prop: 'dutyDeptName'
  },
  {
    label: '厂商代码',
    prop: 'dutyDeptName'
  },
  {
    label: '厂商名称',
    prop: 'dutyDeptName'
  },
  {
    label: '备注',
    prop: 'dutyDeptName',
    width: '55'
  }
])

const tableData1 = [
  {
    date: '20230427',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  }
]

const tableHeader1 = ref([
  {
    label: '入库单号',
    prop: 'slipNo'
  },
  {
    label: '入库日期',
    prop: 'slipDate'
  },
  {
    label: '入库原因',
    prop: 'slipDate'
  },
  {
    label: '厂商',
    prop: 'slipDate'
  },
  {
    label: '材料颜色',
    prop: 'slipDate'
  },
  {
    label: '材料名称',
    prop: 'slipDate'
  },
  {
    label: '规格',
    prop: 'slipDate'
  },
  {
    label: '单位',
    prop: 'slipDate'
  },
  {
    label: '数量',
    prop: 'slipDate'
  },
  {
    label: '单价',
    prop: 'slipDate'
  },
  {
    label: '金额',
    prop: 'slipDate'
  }
])
</script>

<style lang="less" scoped>
h1 {
  font-size: 16px;
}
</style>
